<template>
  <t-page-one
      :form-desc="formDesc"
      add-url="/sys/params/add" update-url="/sys/params/update"
      url-query-by-id="/sys/params/query/one/"
      url-delete-by-ids="/sys/params/deleteByIds"
      url="/sys/params/query/page"
  >
  </t-page-one>
</template>

<script>
export default {
  data() {
    return {
      /* 表单 */
      formDesc: {
        paramCode: {
          label: '参数代码',
          type: 'input',
          rules: [
            {required: true, message: '该项必填', trigger: 'blur'},
            {min: 1, max: 20, message: '长度在 1 到 20 个字符', trigger: 'blur'},
            {pattern: /^\w+$/, message: '由数字、字母、下划线组成', trigger: 'blur'},
          ],
          //表格列配置
          colCfg:{
            width:'180'
          }
        },
        paramName: {
          label: '参数名称',
          type: 'input',
          rules: [
            {required: true, message: '该项必填', trigger: 'blur'},
            {min: 1, max: 20, message: '长度在 1 到 20 个字符', trigger: 'blur'},
            {pattern: /^[\u4E00-\u9FA5A-Za-z0-9_]+$/, message: '由中文、数字、字母、下划线组成', trigger: 'blur'},
          ],
          colCfg:{
            width:'180'
          }
        },
        paramValue: {
          label: '参数值',
          type: 'input',
          rules: [
            {required: true, message: '该项必填', trigger: 'blur'},
            {min: 1, max: 20, message: '长度在 1 到 20 个字符', trigger: 'blur'},
            {pattern: /^[A-Za-z0-9]+$/, message: '由数字、字母线组成', trigger: 'blur'},
          ],
          colCfg:{
            width:'180'
          }
        },
        remark: {
          label: '备注',
          type: 'textarea',
          rules: [
            {min: 1, max: 120, message: '长度在 1 到 120 个字符', trigger: 'blur'},
          ],
        },
      },
    }
  },
  methods: {}
}
</script>

<style scoped>

</style>